<?php
/**
 * Mensage 
 * Auxiliar da Camada de Visualizaçao
 * Exibe as menssagens 
 * @author Erick GIorgio
 * @date 2015-01-04
 * @author Zoy 
 * 
 * 
 */
class Zend_View_Helper_Mensage extends Zend_View_Helper_Abstract
{
    /**
     * Mótodo Principal
     * @param string $msg 
     * @return html 
     */
    public function mensage($msg,$class='')
    {
        $this->view->messages =$msg;
        switch ($class){
            case 'ok':
                $this->view->class='alert-success';
                break;
            case 'error':
                $this->view->class='alert-warning';
                break;
            case 'info':
                $this->view->class='alert-info';
                break;
            default:
                $this->view->class='alert-block';
                break;    
        }
       
        echo $this->view->render('principal/mensage.phtml');
        
    }
   
}